import 'package:equatable/equatable.dart';

class SymbolInfo extends Equatable {
  const SymbolInfo({
    required this.symbol,
    required this.count,
  });

  final String symbol;
  final int count;

  @override
  List<Object?> get props {
    return [
      symbol,
      count,
    ];
  }

  SymbolInfo copyWith({
    String Function()? symbol,
    int Function()? count,
  }) {
    return SymbolInfo(
      symbol: symbol == null ? this.symbol : symbol(),
      count: count == null ? this.count : count(),
    );
  }
}
